#!/bin/bash

file=$1

if test -L "$file"; then
    echo symbolic link
elif test -d "$file"; then
    echo directory
elif test -f "$file"; then
    echo regular file
elif test -b "$file"; then
    echo block special
elif test -c "$file"; then
    echo character special
else
    echo other type
fi
